package com.yr.ryjk.coin.dao;

import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import com.yr.ryjk.coin.entity.ShareAppRecord;

public interface ShareAppRecordMapper {
    int deleteByPrimaryKey(String shareAppRecordId);

    int insert(ShareAppRecord record);

    int insertSelective(ShareAppRecord record);
    
    ShareAppRecord selectByPrimaryKey(String shareAppRecordId);
    
	@Select("select count(1) from share_app_record sar where user_id=#{0} and DATE(sar.get_time)=DATE(NOW())")
	@ResultType(Integer.class)
    int selectCountByPrimaryKey(String shareAppRecordId);

    int updateByPrimaryKeySelective(ShareAppRecord record);

    int updateByPrimaryKey(ShareAppRecord record);
}
